package com.naiterui.ehp.bs.cms.modules.wms.mapper;

import org.apache.ibatis.annotations.Param;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.naiterui.ehp.bs.cms.common.constants.DsName;
import com.naiterui.ehp.bs.cms.modules.oms.vo.OrderVO;
import com.naiterui.ehp.bs.cms.modules.wms.entity.Product;
import com.naiterui.ehp.bs.cms.modules.wms.vo.ProductVO;

@DS(DsName.EHP)
public interface ProductMapper extends BaseMapper<Product> {

    IPage<ProductVO> getPage(@Param("page") IPage<OrderVO> page, @Param("ew") QueryWrapper<ProductVO> entityWrapper);

    ProductVO getById(@Param("productId") Long productId);

}
